import axios from '../uitls/request';

// 登录
export const usersLogin = (data: any)=>axios.post(`/users/login`,data)

//添加账号

export const usersAdd = (data:any)=>axios.post('/users/add',data)


//获取账号列表

export const usersList = (data)=>axios.get('/users/list',{params:data})


//根据账号id获取账号详情

export const usersGetbyid = (data)=>axios.get('/users/getbyid',{params:data})


//全账号管理-修改账号详情

export const usersEdit = (edit)=>axios.get('/users/edit',{params:edit})

//全账号管理-删除账号

export const  usersDel = (edl)=>axios.get('/users/del',{params:edl})


//全账号管理-批量删除账号

export const usersBatchdel=(data)=>axios.post('/users/batchdel',data)

//全账号管理-根据姓名查询数据列表

export const usersSearch = (list)=>axios.get("/users/search",{params:list})

